<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: fzy-2
  Date: 2021/4/16
  Time: 20:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String path = request.getContextPath(); %>
<html>
<head>
    <meta charset="utf-8">
    <title>上机考试系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- le styles -->
    <link href="<%=path%>/css/bootstrap.css" rel="stylesheet">
    <link href="<%=path%>/css/bootstrap-datetimepicker.css" rel="stylesheet">
    <link href="<%=path%>/css/exam.css" rel="stylesheet">
    <style>
        body {
            padding-top: 60px;
            /* 60px to make the container go all the way to the bottom of the topbar */
        }
    </style>
    <link href="<%=path%>/css/bootstrap-responsive.css" rel="stylesheet">

    <!-- le html5 shim, for ie6-8 support of html5 elements -->
    <!--[if lt ie 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
</head>

<body>

<%@ include file="/WEB-INF/pages/Teacher/teacher_header.jsp"%>

<div class="container">
    <h1>
        <img src="<%=path%>/img/exam-teacher.png"  alt=""/> 上机考试管理
    </h1>


    <form class="exam-form form-inline" action="${pageContext.request.contextPath}/teacher_add_student"
          method="post">
        <h4>添加单个学生</h4>
        <label>
            <input type="text" name="sno" placeholder="学号*" size="20" />
        </label>
        <label>
            <input type="text" name="sname" placeholder="姓名*" size="20" />
        </label>
        <label>
            <input type="text" name="sclass" placeholder="班级" size="20" />
        </label>
        <button type="submit" class="btn btn-primary"><i class="icon-plus"></i> 添加</button>
    </form>

    <form class="exam-form form-inline" action="${pageContext.request.contextPath}/teacher_find_student"
          method="post">
        <h4>查找学生信息</h4>
        <label>
            <input type="text" name="sno" placeholder="学号" size="20" />
        </label>
        <label>
            <input type="text" name="sname" placeholder="姓名" size="20" />
        </label>
        <label>
            <input type="text" name="sclass" placeholder="班级" size="20" />
        </label>
        <button type="submit" class="btn btn-primary"><i class="icon-search"></i> 查找</button>
        <input type="hidden" name="isUnlock" value="2" />
    </form>
<!--学生信息展示页面-->
    <table class="table table-striped table-bordered">
        <thead>
        <tr>
            <th>学号</th>
            <th>姓名</th>
            <th>班级</th>
            <th>登陆设备IP</th>
            <th>提交时间</th>
        </tr>
        </thead>
        <tbody>


            <tr>
                <th class="span4">${student.number}</th>
                <th class="span4">${student.name}</th>
                <th class="span4">${student.clazz}</th>
                <th class="span4">${student.ipbinding}</th>
                <th class="span4">${student.submittime}</th>
                <th class="span3"><label><input type="checkbox" disabled/></label></th>
                <th class="span2">
                    <button class="btn btn-primary delete">删除</button>
                </th>
<%--                <th style="display: none">--%>
<%--                    <input class="deleteById" name="number" type="" value="${student.id}"/>--%>
<%--                </th>--%>
            </tr>
        </tbody>
    </table><!--学生信息展示页面-->


    <div class="container-fluid">
        <div class="row-fluid">

        </div>
    </div>

    <c:if test="${msg ne null}">
        <script>
            alert("${msg}");
        </script>
    </c:if>
</div>
<!-- /container -->
<!-- placed at the end of the document so the pages load faster -->
<script src="<%=path%>/js/jquery.min.js"></script>
<script src="<%=path%>/js/bootstrap.min.js"></script>
<script src="<%=path%>/js/bootstrap-datetimepicker.js"></script>
<script src="<%=path%>/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
</body>
</html>
